import Axios, { AxiosStatic, AxiosRequestConfig } from 'axios'

export default class Http {

  constructor() {
    // this.host = `http://192.168.1.209:9000`
    this.host = `/static/data`
  }

  Get (uri, query, options) {
    return Axios.get(`${this.host}/${uri}`, { params: query, timeout: 5000 })
      .then(res => res.data)
  }
}